package com.novunda.platform.common.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public final class GsonUtils {

    private static final Gson GSON = new GsonBuilder().create();
    
    private static final Gson GSON_NULL = new GsonBuilder().serializeNulls().create();

    private static final Gson GSON_DISABLE_ESCAPING = new GsonBuilder().disableHtmlEscaping().create();

    private GsonUtils() {

    }

    public static Gson getInstance() {
        return GSON;
    }
    
    public static Gson getInstanceSeriNulls() {
        return GSON_NULL;
    }

    public static Gson getDisEsca() {
        return GSON_DISABLE_ESCAPING;
    }
}
